import request from '@/utils/request'

// 查询职位，薪资申请单列表
export function listAdjustment(query) {
  return request({
    url: '/module/adjustment/list',
    method: 'get',
    params: query
  })
}

// 查询职位，薪资申请单详细
export function getAdjustment(adjustmentId) {
  return request({
    url: '/module/adjustment/' + adjustmentId,
    method: 'get'
  })
}

// 新增职位，薪资申请单
export function addAdjustment(data) {
  return request({
    url: '/module/adjustment',
    method: 'post',
    data: data
  })
}

// 修改职位，薪资申请单
export function updateAdjustment(data) {
  return request({
    url: '/module/adjustment',
    method: 'put',
    data: data
  })
}

// 删除职位，薪资申请单
export function delAdjustment(adjustmentId) {
  return request({
    url: '/module/adjustment/' + adjustmentId,
    method: 'delete'
  })
}
